import {DefaultTheme} from 'vitepress'

const config: DefaultTheme.Config = {
  // https://vitepress.dev/reference/default-theme-config
  logo: '/logo.svg',
  outline: 'deep',
  nav: [
    {text: '首页', link: '/'},
    {text: '开发指南', link: '/guide/install'},
    {text: '组件', link: '/components/button/'},
    {text: '工具', link: '/utils/'},
  ],
  footer: {
    message: 'Made by Jvyou Team with ❤️ Jvyou',
    copyright: 'Copyright © 2023-present Jvyou',
  },
  sidebar: {
    '/components/': [
      {
        text: '基础组件',
        items: [
          {text: 'JButton 按钮', link: '/components/button/'},
        ],
      },
      {
        text: '表单组件',
        items: [{text: 'JInput 输入框', link: '/components/input/'}],
      },
      {
        text: '数据组件',
        items: [
          {text: 'JTable 表格', link: '/components/table/'},
          {text: 'JVirtualList 虚拟列表', link: '/components/virtual-list/'},
        ],
      },
      {
        text: '反馈组件',
        items: [{text: 'JTooltip 文字提示', link: '/components/tooltip/'}],
      },
      {
        text: '布局组件',
        items: [
          {text: 'JSpace 间距', link: '/components/space/'}
        ],
      },
    ],
    'utils': [
      {text: '指南', items: [{text: '概述', link: '/utils/'}]},
      {
        text: '核心功能',
        items: [
          {text: 'useClassName', link: '/utils/gen-class/'},
        ],
      },
    ],
    'guide': [
      {
        text: '开发指南',
        items: [
          {text: '安装', link: '/guide/install'},
          {text: '快速开始', link: '/guide/getting-started'},
        ],
      },
    ],
  },

  socialLinks: [
    {icon: 'github', link: 'https://github.com/vuejs/vitepress'}
  ]
}

export default config
